const fs = require('fs');
const child_process = require('child_process');
// fork sub process
for (var i = 0; i<3; i++) {
	var wp = child_process.fork('demo30childProcess.js', [i]);
	wp.on('close', code => console.log('sub process exit =>', code));
}
